﻿// 维护分类Model
Ext.define('MaintenClass', {
    extend: 'Ext.data.Model',
    fields: [
        "Id"
        , "Text"   //名称
    ],
    idProperty: "Id"
});

// 维护分类下拉框
Ext.define("SHApp.System.Maintenance.MaintenClassComBox", {
    extend: "BLBTSystem.CmbData",
    alias: "widget.MaintenClassComBox",
    dataUrl: "api/maintenclass?format=json",
    model: "MaintenClass",
    matchFieldWidth: true,
    sorters: [{
        property: 'Text',
        direction: 'ASC'
    }],
    listConfig: {
        resizable: true,
        width: 300
    },
    minChars: 1,
    valueField: "Id",
    displayField: "Text",
    initComponent: function () {
        Ext.apply(this);
        this.callParent(arguments);
    }
});